<?php

session_start();

if(@$_SESSION['logged']) {

class MyDB extends SQLite3 {
	function __construct() {
		$this->open('access.db');
	}
}

$db = new MyDB();

if(!$db) { 
		echo $db->lastErrorMsg();
}

$sql = "DELETE FROM USERS WHERE uid = '".$_POST['data']."';";

echo $sql;

$results = $db->query($sql);


}

?>